<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

<style>
<!--
.pageFormContent label{
	float:none;
}
-->
</style>

<div class="pageContent">
	<form:form cssClass="pageForm required-validate" modelAttribute="book" action="../books/save" name="saveBooks" method="post" onsubmit="return iframeCallback(this, navTabAjaxDone);">
		<div class="pageFormContent nowrap" layoutH="56">
			<dl>
				<form:hidden path="bookId"/>
				<dt><spring:message code="bookName"/></dt>
				<dd>
					<form:input path="bookName"/>
				</dd>
			</dl>
			<dl>
				<dt><spring:message code="bookAuthor"/></dt>
				<dd>
					<form:input path="bookAuthor"/>
				</dd>
			</dl>
			<dl>
				<dt><spring:message code="typeName"/></dt>
				<dd>
					<form:select path="type.typeId" items="${bookTypeList}" itemLabel="typeName" itemValue="typeId"/>
				</dd>
			</dl>
			<dl>
				<dt><spring:message code="bookDesc"/></dt>
				<dd>
					<form:textarea rows="15" cols="120" path="bookDesc"/>
				</dd>
			</dl>
		</div>
		<div class="formBar">
			<ul>
				<!--<li><a class="buttonActive" href="javascript:;"><span>保存</span></a></li>-->
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit"><spring:message code="save"/></button></div></div></li>
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close"><spring:message code="cancel"/></button></div></div>
				</li>
			</ul>
		</div>
	</form:form>
</div>